<?php
/**
 * 一般性规范
 * @author tang
 */
namespace app\common\lib;

class Util{
    /**
    * 数据返回格式
    */
   public static function show($code = 1,$msg = 'ok',$data = []) {
       $result = [
            'code' => $code,
            'msg' => $msg,
            'data' => $data
        ];

        echo json_encode($result);
   }
}

